package org.mozhu.zufang.wechat.web.controller;

import org.mozhu.zufang.wechat.wx.oauth.OAuthRequired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/dev")
@OAuthRequired(false)
public class DevController {

    @RequestMapping("test")
    public String test(Model model) {
        model.addAttribute("key", "value-a");
        return "test";
    }
    
    @RequestMapping("blank")
    public String page(Model model) {
        model.addAttribute("key", "value-a");
        return "blank";
    }

}
